package com.hernie.piggymall.auth.feign;

import com.hernie.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author HuangJp
 * @Date 2022/4/8
 * @Description
 */
@FeignClient("piggymall-third-party")
public interface ThirdPartyFeignClient {

    @GetMapping("/sms/sendcode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
